import request from '@/utils/request'

// 消息列表
export function messageList(query) {
  return request({
    url: '/message/list/msg',
    method: 'get',
    params: query
  })
}
// 发送消息
export function createMsg(data) {
  return request({
    url: '/message/publish/msg',
    method: 'post',
    data: data
  })
}
// 删除

export function deleteMsg(id) {
  return request({
    url: '/message/delete/msg/' + id,
    method: 'DELETE',
    data: id
  })
}
// sousuo
export function searchList(data) {
  return request({
    url: 'message/search/msg',
    method: 'get',
    params: data
  })
}
